//
// Created by Mouse on 2017/7/11.
//

#include "matrixjni.h"


JNIEXPORT jintArray JNICALL
Java_com_gm_hardwarelib_MatrixControler_readJoystickPoint(JNIEnv *env, jclass type) {

    // TODO

}

JNIEXPORT void JNICALL
Java_com_gm_hardwarelib_MatrixControler_pwmPlay(JNIEnv *env, jclass type, jint gpioPin,
                                                jint frequency, jint duty) {
    PWMPlay(gpioPin, frequency, duty);
}

JNIEXPORT void JNICALL
Java_com_gm_hardwarelib_MatrixControler_pwmStop(JNIEnv *env, jclass type, jint gpioPin) {
    PWMStop(gpioPin);
}

